import request from '@/utils/request'

// 用户优惠券

// 查询
export function selectCoupon(data) {
         return request.get("/account/selectCoupon;", data);
       }

//添加
export function insertCoupon(data) {
  return request.get("/account/insertCoupon;", data);
}

//修改
export function updateCoupon(data) {
  return request.get("/account/updateCoupon;", data);
  
}


//删除
export function deleteCoupon(data) {
  return request.delete("/account/deleteCoupon;", data);
}



/* ************************公共优惠卷********************************* */

//1.//添加
export function insertPublicCoupon(data) {
  return request.get("/account/insertPublicCoupon;", data);
}

//删除
export function deletePublicCoupon(data) {
  return request.delete("/account/deletePublicCoupon;", data);
}

//修改
export function updatePublicCoupon(data) {
  return request.get("/account/updatePublicCoupon;", data);
}

// 查询
export function selectPublicCoupon(data) {
  console.log("参数:", data);
  return request.get("/account/selectPublicCoupon;", data);
}
